﻿<navigation:Page x:Class="XamlPhysics.Samples.Viewer" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:physics="clr-namespace:XamlPhysics;assembly=XamlPhysics"
           mc:Ignorable="d"
           d:DesignWidth="1024" d:DesignHeight="768"
           Title="Viewer Page">
    <Grid x:Name="LayoutRoot">
        <physics:PhysicalBox x:Name="UxBox">
            <physics:PhysicalBox.Clock>
                <physics:GameLoop Interval="0:0:0.020" />
            </physics:PhysicalBox.Clock>
            <physics:MouseDrag Width="1024" Height="768">
                <Canvas x:Name="UxSampleContainer">
                </Canvas>
            </physics:MouseDrag>
        </physics:PhysicalBox>
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Right" Height="64" Orientation="Horizontal">
            <Button x:Name="UxPlay" Margin="4">
                <Image Source="Images/Run.png" />
            </Button>
            <Button x:Name="UxPause" Margin="4">
                <Image Source="Images/Pause.png"  />
            </Button>
            <Button x:Name="UxStop" Margin="4">
                <Image Source="Images/Stop.png"  />
            </Button>
        </StackPanel>
    </Grid>
</navigation:Page>